package ast;

public class MethodDecNode extends Node {
    
	public ParamListNode formalParam;
	public MethodBodyNode methodBody;
	public String type;
	public String id;
	public String modifier;
	
    public MethodDecNode (String id, String modifier, String type, ParamListNode formalParam, MethodBodyNode methodBody) {
    	this.left = null;
    	this.right = null;
    	this.id = id;
        this.type = type;
    	this.modifier = modifier;
        this.formalParam = formalParam;
        this.methodBody = methodBody;
    }

    public Object accept(Visitor v) {
    	return v.visit(this);
    }
    
}
